package com.wiloon.java8x.basic.event;

import java.util.EventObject;

/**
 * Created by wiloon on 4/23/17;
 */
public class DoorEvent extends EventObject {

    private String doorState = "";// 表示门的状态，有“开”和“关”两种

    DoorEvent(Object source, String doorState) {
        super(source);
        this.doorState = doorState;
    }

    public void setDoorState(String doorState) {
        this.doorState = doorState;
    }

    String getDoorState() {
        return this.doorState;
    }

}